package thread.computer;

import java.util.Vector;

public class Service {
	public static void main(String[] args) {
		Computer com = new Computer();
		
		// init customer;
		int nc = 3;
		Vector<Customer> clist = new Vector<Customer>();
		
		for (int i=0; i<nc; i++){
			Customer cus = new Customer(com, i+1, "c"+(i+1));
			clist.add(cus);
		}
		
		for (Customer cus : clist) {
			Thread th = new Thread(cus);
			th.start();
		}
	}
}
